package com.dongdongshop.domain.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
* 商品类目
* @TableName tb_item_cat
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "商品目录返给前端做树形")
public class ItemCatRes implements Serializable {

    /**
    * 类目ID
    */
    @ApiModelProperty("类目ID")
    private Long id;

    /**
    * 类目名称
    */
    @ApiModelProperty("类目名称")
    private String name;


    /**
    * 类型id
    */
    @ApiModelProperty("类型id")
    private Long typeId;


    @ApiModelProperty("子级数据")
    private List<ItemCatRes> children;
}
